package day04.ti.ti02;

public class Ti02 {
    public static void main(String[] args) {
        invokeCalc((a, b) ->
                a - b);
        invokeCalc((int a,int b) -> {
            return a - b;
        });
    }

    public static void invokeCalc(Calculator calculator) {
        int num = calculator.calc(130, 120);
        System.out.println(num);

    }
}

interface Calculator {
    int calc(int a, int b);

}